﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Management.Core.WaterQuality
{
    public class WaterQuality
    {
        [Key]
        public int WaterQUalityID { get; set; }

        [Required(ErrorMessage="必填")]
        [Display(Name = "是否合格")]       
        public int isQualified { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "类别")]
        public string Type { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "级别")]
        public string Rank { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "级别编码")]
        public string RankCode { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "名称")]
        public string Name { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "英文名称")]
        public string EnglishName { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "排序")]
        public int sort { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "是否禁用")]
        public int IsDisabled { get; set; }

        [Required(ErrorMessage = "必填")]
        [Display(Name = "是否可加工")]
        public int IsWorkable { get; set; }

        [Display(Name = "创建时间")]
        public DateTime Created_at { get; set; }

        [Display(Name = "更新时间")]
        public DateTime Updated_at { get; set; }
    }
}
